<?php
namespace plugin\banmichaoqiangbizhi\validate;
 
use app\common\validate\BaseValidate;
 
class ShoptagValidate extends BaseValidate
{
    protected $rule = [  
    ];

    protected $message = [
              'id.require' => 'id不得为空',
              
              'id.number' => 'id必须为数字',
              
              'id.max' => 'id不能超过20个字符',
              
              'name.require' => '名称不得为空',
              
              'name.max' => '名称必须是字符串类型',
              
              'name.max' => '名称不能超过20个字符',
              //数据验证提示
                      ];

       /**
      * @notes  edit  
      * @date 2023-11-03 08:11:50
      * @author 半米科技低代码一键生成
      */
      public function   sceneedit(){ 
                   return $this->append('id','require|number|length:0,20')->append('name','require|length:0,20');
       }

                 /**
      * @notes  dels  
      * @date 2023-11-03 08:11:50
      * @author 半米科技低代码一键生成
      */
      public function   scenedels(){ 
                   return $this->append('id','require|number|length:0,20');
       }

          //数据验证方法

}